#ifndef AXISDATA_H
#define AXISDATA_H

#include <QMainWindow>
#include <src/commom/stackstatuswidget.h>
#include <src/commom/wenlibackwidget.h>
#include <src/sqltest/sqltest.h>
#include <src/clean/common/cleanscanbottom.h>
#include <src/sqltest/axistest.h>
#include <src/sqltest/serialport.h>
#include <src/sqltest/serialset.h>
#include "storagedatabase.h"
#include <src/main/common/shadowwidget.h>
#include "../clean/cleanwidget.h"

class storageDatabase;
class CleanScanBottom;
class WenliBackWidget;
class StackStatusWidget;
class CleanWidget;

class axisData : public QWidget
{
    Q_OBJECT
public:
    explicit axisData(QWidget *parent = nullptr);
private:
    void initUI();
    void initConnect();
    QWidget* createDataPage(const QStringList &titles);

signals:
    void goToMain();
    void showMin();
    void closeWidget();
private:
    WenliBackWidget *m_topBackWidget;
    StackStatusWidget   *m_stackStatusWidget;
    CleanWidget *m_cleanWidget;
    axisTest  *m_axisTest;
    axisTest  *m_axisTest2;
    axisTest  *m_axisTest3;
    axisTest  *m_axisTest4;
    axisTest  *m_axisTest5;
    axisTest  *m_axisTest6;
    axisTest  *m_axisTest7;
    axisTest  *m_axisTest8;
    axisTest  *m_axisTest9;
    axisTest  *m_axisTest10;
    axisTest  *m_axisTest11;
    axisTest  *m_axisTest12;
    axisTest  *m_axisTest13;
    axisTest  *m_axisTest14;
    axisTest  *m_axisTest15;
    axisTest  *m_axisTest16;
    serialPort *m_serialPort;
    serialSet *m_serialSet;
    storageDatabase *m_storageDatabase;
    QTimer mDataTimer;
    QStackedWidget  *m_stackWidget;
    int test=0;

private slots:
  void timerSlot();
  void serialPortSet();
  void goTom_axis();
  void goTom_axis2();
  void onMySignal(double value); // 槽函数的参数与信号的参数匹配
  void onMySignal2(double value); // 槽函数的参数与信号的参数匹配
  void onMySignal3(double value); // 槽函数的参数与信号的参数匹配
  void onMySignal4(double value); // 槽函数的参数与信号的参数匹配
  void onMySignal5(double value); // 槽函数的参数与信号的参数匹配
  void onMySignal6(double value); // 槽函数的参数与信号的参数匹配
  void onMySignal7(double value); // 槽函数的参数与信号的参数匹配
  void onMySignal8(double value); // 槽函数的参数与信号的参数匹配
  void onMySignal9(double value); // 槽函数的参数与信号的参数匹配
  void onMySignal10(double value); // 槽函数的参数与信号的参数匹配

};

#endif // AXISDATA_H
